Skip to content

Conversation

@AlphaGameDeveloper
Copy link

This pull request includes several changes to the cowsay/__main__.py file to enhance its functionality and improve user experience. The most important changes include adding support for reading input from stdin, updating the argument parser to provide better help messages, and handling cases where the text argument is not provided.

Enhancements to input handling:

  • cowsay/__main__.py: Added sys import to support reading from stdin.
  • def cli(): Updated the --text argument to read from stdin if not provided and added a help message for clarity.
  • def cli(): Implemented logic to check if input is being piped and handle errors accordingly when the text argument is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant